package com.ssy.lingxi.pay.repository.allInPay;

import com.ssy.lingxi.pay.entity.allInPay.AllInPay;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @author lqa
 * @version 2.0.0
 * @date 2021/11/26
 */
@Repository
public interface AllInPayRepository extends JpaRepository<AllInPay, Long>, JpaSpecificationExecutor<AllInPay> {
    AllInPay findByBizUserId(String bizUserId);

    AllInPay findFirstByMemberIdAndMemberRoleId(Long memberId, Long memberRoleId);
}
